//
//  SendEmail.m
//  PersonalNews
//
//  Created by dllo on 15/11/28.
//  Copyright © 2015年 changshuhua. All rights reserved.
//

#import "SendEmail.h"

@interface SendEmail()<MFMailComposeViewControllerDelegate>

@end

@implementation SendEmail

+ (void)showMailBoxOnDevice{
    NSString *mail = @"971846558@qq.com";
    mail = [mail stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:mail]];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:mail]];
}

+ (void)displayMailBox:(MFMailComposeViewController *)mailBox{
    // 创建邮件视图VC
    mailBox = [[MFMailComposeViewController alloc] init];
    // 填写收件人地址
    NSArray *recipient = [NSArray arrayWithObject:@"971846558@qq.com"];
    [mailBox setToRecipients:recipient];
    // 填写主题
    [mailBox setSubject:@"意见反馈"];
    // 填写邮件内容
    NSString *messageBody = @"134335";
    [mailBox setMessageBody:messageBody isHTML:YES];
    
}

@end
